﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace Service.Framework.AppStartup
{
    public class SharedStartup : StartupModule<SharedStartup>
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="webApplicationBuilder"></param>
        public override void ConfigureServices(WebApplicationBuilder webApplicationBuilder)
        {
            var services = webApplicationBuilder.Services;
            //默认开启本地缓存
            services.AddMemoryCache();

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="webApplication"></param>
        public override void Configure(WebApplication webApplication)
        {
        }
    }
}
